/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tamanho;

import java.net.MalformedURLException;
import java.net.URL;

/**
 *
 * @author gil
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws MalformedURLException {
        // TODO code application logic here
        String filename = "/Users/GilbertoPereira/";
        // String urlString = "http://www.supertangas.com";
       //String urlString = "http://archive.ubuntu1.com/ubuntu/dists/precise/main/installer-amd64/current/images/netboot/pxelinux.01";
        String urlString = "http://www.avajava.com/tutorials/lessons/how-do-i-get-a-url-or-uri-to-a-file.html";
       // String urlString="http://autoandrive.files.wordpress.com/2010/08/cls-exterior-1.jpg";
       //String urlString="http://ports.ubuntu.com/ubuntu-ports/dists/precise-updates/main/installer-powerpc/current/images/powerpc/netboot/yaboot.conf";


        //instacia a class
        DownloadFile work = new DownloadFile(urlString, filename);
        System.out.println("\nlocal path-->" + work.getLocalPath());
        System.out.println("\nsite-->" + work.getHost());

        System.out.println("\nnome file-->" + work.nomeFileHTML());

        System.out.println("\nweb full-->" + work.getFullWebPath());
 System.out.println("\n path-->" + work.getPath());
        System.out.println("\nsize-->" + work.getSize());
        System.out.println("\nto parser-->" + work.isPagetoParser());


    }
}
